<template>
  <div>
    <p>hooks</p>
    <p>页面中的x:{{ point.x }}--{{ point.y }}</p>
  </div>
</template>

<script>
import { onMounted, onUnmounted, reactive } from "vue";
// 引入自定的hooks
import getpoint from "@/hooks/getpoint";
export default {
  name: "",
  props: [""],
  setup(props) {
    let point = getpoint();
    return {
      point,
    };
  },
};
</script>
<style scoped>
</style>